package cn.hotel.service;

import cn.hotel.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    /**
     * 登录
     * @param account
     * @param password
     * @return
     */
    Map<String,Object> login(String account, String password);

    /**
     * 注册
     * @param member
     * @return
     */
    Map<String,Object> register(Member member);
    //查询功能
    List<Member> getMemberList(String account,int currentIndex,int pageSize);
    int getCount(String account) ;
    //根据会员账号删除会员
    Map<String ,Object> deleteMember(String account);


}
